package org.jeecg.modules.compilation.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.jeecg.modules.compilation.vo.AnnexFileVO;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ToString
@ApiModel(description = "添加或编辑doc的dto")
public class CiDocEditOrUpdateDTO {

    @ApiModelProperty(value = "文件id")
    private String id;
    @ApiModelProperty(value = "图标url")
    private String businessCategoryUrl;
    @ApiModelProperty(value = "文件编号")
    private String documentSn;
    @ApiModelProperty(value = "文件标题")
    private String documentTitle;
    @ApiModelProperty(value = "发文字号")
    private String documentIdentifier;
    @ApiModelProperty(value = "公文类型编号")
    private String documentTypeSn;
    @ApiModelProperty(value = "公文类型名称")
    private String documentTypeName;
    @ApiModelProperty(value = "业务类型编号")
    private String businessCategorySn;
    @ApiModelProperty(value = "业务类型名称")
    private String businessCategoryName;
    @ApiModelProperty(value = "经办部门id")
    private String departmentId;
    @ApiModelProperty(value = "经办部门名称")
    private String departmentName;
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "发布时间")
    private Date publishedDate;
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "废止时间")
    private Date abolitionDate;
    @ApiModelProperty(value = "启用状态(0-未启用，1-启用)")
    private String enableFlag;
    @ApiModelProperty(value = "关联制度文件Sn")
    private String parentDocSn;
    @ApiModelProperty(value = "附件")
    private List<AnnexFileVO> annexFiles;

}
